package com.treeman.api.json.user;

import com.treeman.friend.Invitation;

public class InvitationJson {

	private String from;
	private String to;

	public InvitationJson(Invitation invitation) {
		this.setFrom(invitation.getFrom().getUsername());
		this.setTo(invitation.getTo().getUsername());
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}
}
